<?php
declare(strict_types=1);
namespace SixShop\AliyunIDCard;
use PHPUnit\Framework\TestCase;

class IDCardClientTest extends TestCase
{
    private IDCardClient $idCardClient;

    protected function setUp(): void
    {
        $this->idCardClient = app(IDCardClient::class);
    }

    public function testIdcard()
    {
        $result = $this->idCardClient->idcard('370703198111300338', '郭德昌');
        $this->assertArrayHasKey('birthday', $result);
        $this->assertArrayHasKey('sex', $result);
        $this->assertArrayHasKey('address', $result);
    }
}